<footer class="chen_bottom" style='text-align: left;'>
    <div class="container">
        <div class="smemse">
            <div class="footer clearfix">
            <img class="footer-logo left" src="/Public/Home/public/img/foot-logo.png" alt="">
            <div class="footer-info left">
			<li class="news-item" style='margin-top: -46px;margin-left: 58px;'>
             <span class="cf ft12">项目运维：<a href="http://lib.hhu.edu.cn/" target="_blank" class="cf ft12" style='font-size:14px;margin-left:0;'>河海大学图书馆</a> </span>
					                                                                    
                    
                    <p>             
                        <span>技术支持：江苏宝和数据股份有限公司</span>
                    </p>
                    <p>                 
                        <span>© 版权所有 江苏省高等学校数字图书馆  1997-2018</span>
                    </p>
            </li></div>
            
        </div>
			
            
        </div>
    </div>
</footer>

<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal10" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="left: 5%;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    <img src="__PUBLIC__/Home/public/img/close.png"/>
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    登录我的账号
                </h4>
            </div>
            <form method="post" action=""  >
                <div class="clear"></div>
                <div class="modal-body" style="padding: 0;">
                    <span class="denglu2"><img src="__PUBLIC__/Home/public/img/user.png"/><input class="" type="text" placeholder="请输入用户名" style="padding-left: 10px;" name="username" /></span>
                    <div class="clear"></div>
                    <span class="denglu2"><img src="__PUBLIC__/Home/public/img/password.png"/><input class="" type="password" placeholder="请输入密码" style="padding-left: 10px;" name="password"/></span>
                    <a href="" target="_self"  data-toggle="modal" data-target="#myModal11" style="color: #909090;font-size: 12px;margin-left: 300px;;margin-top: 10px;display: block;" id="close">立即注册>></a>
                </div>
                <div class="modal-footer" style="height: 50px;padding: 0;">
                    <!--<button type="button" class="btn btn-default"-->
                    <!--data-dismiss="modal">取消-->
                    <!--</button>-->
                    <input type="hidden" name="hello" id="is_login">
                    <button type="button" class="btn btn-primary" onclick="user_login()" id="sub_button4" >
                        登录
                    </button>
                </div>
            </form>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal11" tabindex="-1" role="dialog" aria-labelledby="myModalLabel2" aria-hidden="true" >
    <div class="modal-dialog" style="left: 5%;">
        <div class="modal-content" style="width: 415px;">
            <div class="modal-header">
                <button type="button" class="close" id="closee"
                        data-dismiss="modal" aria-hidden="true">
                    <img src="__PUBLIC__/Home/public/img/close.png"/>
                </button>
                <h4 class="modal-title" id="myModalLabel2">
                    注册我的账号
                </h4>
            </div>
            <form action="{:U('Public/register')}" method="post" class="form_login" >
                <div class="modal-body">

                    <span class="denglu3"><img src="__PUBLIC__/Home/public/img/users.png"/><input class="reg_username" type="text" placeholder="请输入用户名" style="padding-left: 10px;"name="username"/></span>
                    <div class="clear"></div>
                    <span class="denglu3"><img src="__PUBLIC__/Home/public/img/phone.png"/><input class="reg_tel" type="text" placeholder="请输入手机号" style="padding-left: 10px;"name="tel" /></span>
                    <div class="clear"></div>
                    <span class="denglu3"><img src="__PUBLIC__/Home/public/img/mail.png"/><input class="reg_email" type="text" placeholder="请输入邮箱" style="padding-left: 10px;" name="email" /></span>
                    <div class="clear"></div>
                    <span class="denglu3"><img src="__PUBLIC__/Home/public/img/password.png"/><input class="reg_password" type="password" placeholder="请输入密码" style="padding-left: 10px;"name="password"/></span>
                    <div class="clear"></div>
                    <span class="denglu3"><img src="__PUBLIC__/Home/public/img/password.png"/><input class="reg_repassword" type="password" placeholder="请确认密码" style="padding-left: 10px;"name="repassword"/></span>

                </div>
                <div class="modal-footer" style="margin-bottom: 20px;">
                    <!--<button type="button" class="btn btn-default"-->
                    <!--data-dismiss="modal">关闭-->
                    <!--</button>-->
                    <button type="submit" class="btn btn-primary ajax-post" target-form="form_login"  >
                        注册
                    </button>
                </div>
            </form>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<script>
    $(function() {
        toastr.options = {
            "closeButton": false,
            "debug": true,
            "progressBar": true,
            "positionClass": "toast-top-center",
            "showDuration": "400",
            "hideDuration": "1000",
            "timeOut": "7000",
            "extendedTimeOut": "1000",
            "showEasing": "swing",
            "hideEasing": "linear",
            "showMethod": "fadeIn",
            "hideMethod": "fadeOut"
        }
        // validate signup form on keyup and submit
        $("#closee").click(function(){
            $(".modal-backdrop").hide();
        })
        $("#close").click(function(){
            $("#myModal10").hide();
        })
    });
    function login_show(id){
        $('#myModal10').modal('show');
        $('#is_login').val(id);
    }

    $('#myModal10').bind('keydown', function (e) {
        var key = e.which;
        if (key == 13) {
            user_login()
        }
    });
    //个人登录
    function user_login(){
        var st = $('#is_login').val();
        $('#sub_button4').prop('disabled',true);
        var arr = {};
        arr['username']      = $('input[name="username"]').val();
        arr['password']      = $('input[name="password"]').val();
        $.post("{:U('Public/login')}", {login:arr}, function(r){
            if(r.result == 1){
                toastr.success('执行信息','登录成功');
                setTimeout(function(){
                    if(st == 1){
                        window.location.href="{:U('Task/add')}";
                    }else{
                        location.reload();
                    }

                },1500);
            }else{
                $('#sub_button4').prop('disabled',false);
                toastr.error(r.msg,'登录失败');
            }
        });
    }

</script>